import Mock from 'mockjs';

const imageSrc = [
    "src/data/image/1.png",
    "src/data/image/2.png"
];

const transitions = ['swipe','bars','blinds','turn','slide','cube','zip','blocks','tiles3d'];

let mockData = Mock.mock('mediaReviewData/getData',{
    "data" : {
        "template" : {
            "url" : "src/data/model/model_01.png",
            "size" : [1500,714],
            "position" : [0,365]
        },
        "playlist" : [
            {
                "id": "@string('lower',10)",
                "type" : "imageArray",
                "images|9" : [
                    { "id": "@string('lower',10)", "type" : "image", "url" : `@pick(${imageSrc})`, "playTime" : "@integer(2,5)", "transition" : `@pick(${transitions})` }
                ]
            },
            { "id": "@string('lower',10)", "type" : "image", "url" : "src/data/image/2.png", "playTime" : "@integer(2,5)" },
            { "id": "@string('lower',10)", "type" : "video", "url" : "src/data/video/short2.mp4" },
            { "id": "@string('lower',10)", "type" : "image", "url" : "src/data/image/1.png", "playTime" : "@integer(2,5)" },
            { "id": "@string('lower',10)", "type" : "video", "url" : "src/data/video/short4.mp4" }

        ]
    },
    "success" : 200
});

export { mockData };
